from src.utils.server_utils import server_utils
from src.utils.config_reader import read_util
from src.backend.backend_user import backend_user
from src.backend.backend_teaching_assist import backend_teaching_assist

# 绑定售前客服接口
data_dict1 = {
    'rsNo': read_util.read_data()['app_uid'],
    'showType': 1,
    'sysUserId': 'FDC4164F5FC8FE94FCD7AA664F62118CE07907F1AD2E1378E725FE57042E9CAF8F1C90015D0DE989'
}

# 绑定售后客服接口
data_dict2 = {
    'rsNo': read_util.read_data()['app_uid'],
    'showType': 2,
    'aftersaleSysUserId': '3C0EED046D92131A59DEA64DEAEB191FE07907F1AD2E1378E725FE57042E9CAF8F1C90015D0DE989'
}

# 绑定辅导权限
# data_dict3 = {
#     'permissionkeys': 'PLAN_DETAIL,PLAN_DELAY,PLAN_EDIT,PLAN_HIDE,PLAN_DELETE,PLAN_PROGRESS,EXPORT_TASK',
#     'sysUserIds': '3C0EED046D92131A59DEA64DEAEB191FE07907F1AD2E1378E725FE57042E9CAF8F1C90015D0DE989',
#     'userInfoId': 'bdfd2b85d87f11efa513b8cef603615c'
# }

if __name__ == '__main__':
    print(backend_teaching_assist.find_teaching_assistant_id())

# print(server_utils.post_request(url=f"/uc/v1/userInfo/addTutorshipPermission", data=data_dict3))
